<%--
  Created by IntelliJ IDEA.
  User: nico
  Date: 01/10/12
  Time: 16:30
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:hidden  name="ctag.sentToSite" id="altsentToSite" value="%{ctag.sentToSite}"/>
<s:textfield label="Sent to Site" id="sentToSite"  cssClass="datepicker"/>

<s:hidden  name="ctag.sentToExternalEc" id="altsentToExternalEc" value="%{ctag.sentToExternalEc}"/>
<s:textfield label="Sent to External EC"  id="sentToExternalEc" cssClass="datepicker"/>

<s:hidden  name="ctag.notifiedExternalEc" id="altnotifiedExternalEc" value="%{ctag.notifiedExternalEc}"/>
<s:textfield label="Notified External EC" id="notifiedExternalEc" cssClass="datepicker"/>

<s:hidden  name="ctag.sentToLocalEc" id="altsentToLocalEc" value="%{ctag.sentToLocalEc}"/>
<s:textfield label="Sent to Local EC" id="sentToLocalEc" cssClass="datepicker"/>

<s:hidden  name="ctag.notifiedLocalEc" id="altnotifiedLocalEc" value="%{ctag.notifiedLocalEc}"/>
<s:textfield label="Notified Local EC" id="notifiedLocalEc" cssClass="datepicker"/>

<s:hidden  name="ctag.partiallyExecuted" id="altpartiallyExecuted" value="%{ctag.partiallyExecuted}"/>
<s:textfield label="Partially Executed (date)" id="partiallyExecuted" cssClass="datepicker"/>

<s:hidden  name="ctag.fullyExecuted" id="altfullyExecuted" value="%{ctag.fullyExecuted}"/>
<s:textfield label="Fully Executed (date)" id="fullyExecuted" cssClass="datepicker"/>
<s:select label="Scope" name="ctag.scope" id="scope"  value="%{ctag.scope}"
          list="#{'1':'Site', '2':'Multi-site'}"/>

<tr>
    <td colspan="2" style="text-align: center">
        <s:submit value="Save" id="ctagSave" action="ctagSave" onclick="setEmptyDates();validate();beforeSave();" theme="simple" />
    </td>
</tr>
<s:if test="ctag.id != null">
    <tr>
        <td colspan="2" style="text-align: center">
            <button id="ctagClear" onclick="$('#category').change(); $('html, body').animate({ scrollTop:  $('#category').offset().top - 15 }); return false;">Clear</button>
        </td>
    </tr>
</s:if>
<s:hidden name="ctag.id" value="%{ctag.id}"/>

<s:if test="ctag.id != null">
    <script type="text/javascript">
        $('#scope').parent().parent().remove();
    </script>
</s:if>